package com.zkyc.framework.common.vo.website;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zkyc.framework.common.pojo.ColumnData;
import lombok.Data;

import java.util.Date;

@Data
public class ColumnDataPageVo extends ColumnData {

    private Long current;

    private Long size;

    private Integer columnType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date beginDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endDate;

    public void check() {
        if (current == null) {
            current = 1L;
        }
        if (size == null) {
            size = 10L;
        }
    }
}
